package com.mashibing.jvm;

public class TestGC {
    public static void main(String[] args) {
        for(;;) {
            new Object();
        }
    }
    public void eat(){
        System.out.println("吃饭的方法");
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        System.out.println("1111");
        return super.clone();
    }

    public TestGC() {
    }
}
